bitkeeper revision 1.1544 (4294310cgG9HRlkgAVpjdkn3zSUpkw)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 25 May 2005 08:02:20 +0000 (08:02 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 25 May 2005 08:02:20 +0000 (08:02 +0000)
this patch fixes a wrong email address and replaces a number (errno)
with a defined constant to make it more portable.

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
tools/python/xen/xend/XendBootloader.py

index 09a50f8e8cfe4dd9d408b6af1617e350d0728b89..8fee40b50ff8ad1bae3d69a9220df96baefbd463 100644 (file)
@@ -2,7 +2,7 @@
 # XendBootloader.py - Framework to run a boot loader for picking the kernel
 #
 # Copyright 2005 Red Hat, Inc.
-# Jeremy Katz <katzj@xxxxxxxxxx>
+# Jeremy Katz <katzj@redhat.com>
 #
 # This software may be freely redistributed under the terms of the GNU
 # general public license.
@@ -12,7 +12,7 @@
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
 
-import os, sys, select
+import os, sys, select, errno
 import sxp
 
 from XendLogging import log
@@ -61,7 +61,7 @@ def bootloader(blexec, disk, quiet = 0, vcpus = None, entry = None):
         try:
             r = os.open(BL_FIFO, os.O_RDONLY)
         except OSError, e:
-            if e.errno == 4:
+            if e.errno == errno.EINTR:
                 continue
         break
     ret = ""